<template>
    <div>
        <h1>test</h1>
        <!-- <p>请求数据{{ result.authorization }}</p> -->

    </div>
</template>
<script setup name="test" lang="ts">
/*
function p1() {
    return new Promise((resolve, reject) => {
        resolve({code: 200, data: [1]})
    })
}

function p2() {
    return new Promise((resolve, reject) => {
        resolve({ data: [2]})
        // resolve(2)
    })
}

Promise.all([p1().catch(err => err), p2().catch(err => err)]).then(res => {
    console.log(res, 'res');
    if (res[0].code === 200) {
        console.log(111);
    }
    console.log(res[1], 'res[1]');
    if (res[1].code === 200) {
        console.log(222);
    }
}).catch(err => {
    console.log(err, 'err');
})

const {data} = await useFetch('http://127.0.0.1:3012/api/uc', {
    method: 'get',
    params: {
        type: 'lianton'
    }
})
console.log('------------------------');
const result = data.value.data
*/



</script>
<style lang="scss" scoped>

</style>